import 'package:flutter/material.dart';
import 'package:flutter_xj_video/pages/detail/view.dart';
import 'package:flutter_xj_video/pages/main_page.dart';
import 'package:flutter_xj_video/pages/play/film_play_page.dart';
import 'package:get/get.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
        title: '香瓜影视',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        initialRoute: '/',
        getPages: [
          GetPage(name: '/', page: () => MainPage()),
          GetPage(name: '/detail', page: () => DetailPage()),
          GetPage(name: '/play', page: () => FilmPlayPage()),
        ]);
  }
}
